package com.kgc.service;

import com.kgc.bean.User;
import com.kgc.util.ReturnResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Classname RegisterAndLoginService
 * @Description TODO
 * @Date 2021/6/21 10:08
 * @Created by 17402
 */
public interface RegisterAndLoginService {
    //发送验证码
    ReturnResult<Map<String,Object>> sendCode(String phone);
    //验证码登录或注册
    ReturnResult<Map<String,Object>> userCode2logInOrRegistered(String phone, String code, HttpServletRequest request, HttpServletResponse resp);
    //返回微信授权登录二维码
    ReturnResult<Map<String,Object>> getWxLoginQRCode();
    //微信授权回调
    ReturnResult<Map<String,Object>> wechatAuthorizationCallback(HttpServletRequest request, HttpServletResponse resp);
    //修改个人信息
    ReturnResult<Map<String, Object>> editPersonalInformation(String username, String password, String nickname, String sex, String phone, String country, String province, User user, String token);


}
